package com.example.service;

import com.example.entity.Result;
import com.example.entity.User;
import com.example.page.Page;

import java.util.List;

/**
 * @Author:tjf
 * @Description:
 */
public interface UserService {
    User findUserByCode(String code);
    void queryUserForPagination(Page page, User user);
    Result saveUser(String token, User user);
    Result modifyUserStateByUserId(User user, String token);
    Result deleteUserById(int userId);
    Result deleteUserByList(List<Integer> userIdList);
    Result modifyUserNameByUserId(User user);
    Result resetPasswdByUserId(User user);
}
